package com.ruoyi.business.service;

import java.util.List;

import com.ruoyi.business.dto.InventoryDto;
import org.springframework.data.domain.Page;
import com.ruoyi.business.domain.Inventory;
import org.springframework.data.domain.Pageable;

/**
 * InventoryService接口
 *
 * @author liutietou
 * @since 1.0 2025-06-22
 */
public interface IInventoryService  {
    /**
     * 查询Inventory
     *
     * @param cinvcode InventoryID
     * @return Inventory
     */
    Inventory findById(String cinvcode);

    /**
     * 分页查询Inventory列表
     *
     * @param req Inventory
     * @return Inventory集合
     */
    Page<InventoryDto> findInventoryPage(InventoryDto req);


    /**
     * 查询Inventory列表
     *
     * @param req Inventory
     * @return Inventory集合
     */
    List<Inventory> findInventoryList(Inventory req);

    /**
     * 新增Inventory
     *
     * @param inventory Inventory
     * @return 结果
     */
    void save(Inventory inventory);

    /**
     * 批量删除Inventory
     *
     * @param cinvcodes 需要删除的InventoryID
     * @return 结果
     */
    void deleteByIds(List<String> cinvcodes);

    /**
     * 删除Inventory信息
     *
     * @param cinvcode InventoryID
     * @return 结果
     */
    void deleteInventoryById(String cinvcode);


  //  Page<InventoryDto> findInventoryByDynamic(InventoryDto criteria, Pageable pageable);
}
